count = 0
temp = []
with open("temp.json", "r") as f:
    for line in f:
        temp.append(line.strip())
temp = set(temp)
with open("media.txt", "w") as f1:
    f1.write("\n".join(temp))